import request from '@/utils/request'
// 设备管理
//
export const getManagement = params => {
  return request.get('/vm-service/vm/search', {
    params
  })
}
// 饮料机型号
export const Beveragemachinemodel = params => {
  return request.get('/vm-service/vmType/search', {
    params
  })
}
// 选择点位
export const Selectpoint = params => {
  return request.get('/vm-service/node/search', {
    params
  })
}
// 新增设备
export const addDevice = data => request.post('/vm-service/vm', data)
// 获取详情
export const getEmployeeDetail = id => request.get(`vm-service/policy/vmPolicy/${id}`)
// 取消策略
export const CancelPolicy = data => request.put(`/vm-service/vm/cancelPolicy/${data.innerCode}/${data.policyId}`)
// 选择策略
export const selectionpolicy = () => request.get('/vm-service/policy')
// 确定选择策略
export function ConfirmChoices (data) {
  return request({
    url: '/vm-service/vm/applyPolicy',
    method: 'put',
    data

  })
}
// 设备状态
export const Devicestatus = params => {
  return request.get('/vm-service/vm/search', {
    params
  })
}
// 设备管理状态
export const getDeviceType = params => {
  return request.get('/vm-service/vmType/search', {
    params
  })
}
